let articlesList = document.querySelectorAll(".brandfl_tag span a")
let brand_tag = document.querySelectorAll(".brand_tag")
articlesList.forEach(function(item, index) {
    item.onclick = function() {
        for (var i = 0; i < brand_tag.length; i++) {
            articlesList[i].classList.remove("current1")
            brand_tag[i].classList.remove("active")
        }
        this.classList.add('current1')
        brand_tag[index].classList.add("active")
    }
})

let titleEl = document.querySelectorAll(".bantag1 span")

let content = document.querySelectorAll(".brand_r_contnet > div")

titleEl.forEach(function(item, index) {
    item.onclick = function() {
        for (var i = 0; i < titleEl.length; i++) {
            titleEl[i].classList.remove("current2")
            content[i].classList.remove("active")

        }
        this.classList.add('current2')
        content[index].classList.add("active")
    }
})